home *** CD-ROM | disk | FTP | other *** search
/ The 640 MEG Shareware Studio 2 / The 640 Meg Shareware Studio CD-ROM Volume II (Data Express)(1993).ISO / clang / cxe103.zip / MAKECXF.BAT < prev    next >
DOS Batch File  |  1992-08-03  |  2KB  |  70 lines

  1. @echo off
  2. del cxf.exe
  3. if "%1" == "tc" goto :TC
  4. if "%1" == "bc" goto :BC
  5. if "%1" == "bcwin" goto :BCWIN
  6. if "%1" == "bcdll" goto :BCDLL
  7. if "%1" == "mc" goto :MC
  8. if "%1" == "zc" goto :ZC
  9. if "%1" == "pc" goto :PC
  10. if "%1" == "tp" goto :TP
  11.  
  12. :usage
  13. echo ------------------------------------------------------------------
  14. echo This batch file creates cxf.exe for a several different compilers
  15. echo and evironments.  Run this batch file again after choosing a
  16. echo compiler from the list below.
  17. echo ------------------------------------------------------------------
  18. echo makecxf bc    -  Borland C/C++   MS-DOS   -  using CX.OBJ
  19. echo makecxf mc    -  Microsoft C     MS-DOS   -  using CX.OBJ
  20. echo makecxf zc    -  Zortech C/C++   MS-DOS   -  using CX.OBJ
  21. echo makecxf pc    -  Power C (2.0)   MS-DOS   -  using CX.MIX
  22. echo makecxf tp    -  Turbo Pascal    MS-DOS   -  using CX.TPU
  23. echo makecxf bcwin -  Borland C/C++   Windows  -  using CX.OBJ
  24. echo makecxf bcdll -  Borland C/C++   Windows  -  using CXWIN.DLL
  25. echo ------------------------------------------------------------------
  26. echo When using a C compiler, you will probably need to alter this
  27. echo batch file to inform the compiler where the header and library
  28. echo files may be found.  When using a DLL, you may need to copy
  29. echo CXWIN.DLL to a directory where Windows searches for DLL's.
  30. echo ------------------------------------------------------------------
  31. goto :end
  32.  
  33.  
  34. :BC
  35. bcc -ml -Id:\tc\include -Ld:\tc\lib cxf.c cx.obj
  36. goto :end
  37.  
  38. :BCWIN
  39. bcc -ml -WS -Id:\tc\include -Ld:\tc\lib cxf.c cx.obj winio.obj
  40. d:\tc\rc cxf.exe
  41. goto :end
  42.  
  43. :BCDLL
  44. bcc -ml -WS -Id:\tc\include -Ld:\tc\lib cxf.c cxwin.lib winio.obj
  45. d:\tc\rc cxf.exe
  46. goto :end
  47.  
  48. :MC
  49. cl -c -AL -Id:\mc\inc cxf.c
  50. link /NOD cxf cx,,,d:\mc\lib\llibce;
  51. goto :end
  52.  
  53. :ZC
  54. ztc -c -ml -Ic:\zc cxf
  55. blink cxf cx,,,c:\zc\zll
  56. goto :end
  57.  
  58. :PC
  59. del cxf.mix
  60. pc -ml cxf
  61. pcl cxf cx
  62. goto :end
  63.  
  64. :TP
  65. tpc cxf
  66. goto :end
  67.  
  68.  
  69. :end
  70.